package cc.chengheng.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product")
public class ProductController {

    @PreAuthorize("hasAnyAuthority('ddff,admin')")
    @GetMapping("findAll")
    public String findAll() {
        return "产品列表查询成功Controller";
    }
}
